<?php
/**
 * Groups module for XOOPS
 *
 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code 
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The Groups Project http://code.google.com/p/groupsforxoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         groups
 * @since           2.3.0
 * @author          Hui Xiao < xh.8326@gmail.com >
 * @version         $Id: form.search.php Sat Jul 18 13:05:30 CST 2009
 */

if ( !defined("XOOPS_ROOT_PATH") ) exit;
$form = new XoopsForm(_SEARCH.":", "searchform", "search.php", "get");
$_option = empty($_option) ? "group" : $_option;
$_op = new XoopsFormRadio("","op",$_option);
$_op->addOption("group",_GP_SEARCH_OP_1);
$_op->addOption("topic",_GP_SEARCH_OP_2);
$form->addElement($_op);

$cat_id = new XoopsFormSelect("","cat_id",@$cat_id);
$cat_id->addOption("0",_GP_SEARCH_SELECT_CATEGORY);
$cat_id->addOptionArray($_cat);
$form->addElement($cat_id);

$form->addElement(new XoopsFormText("","key",32,255,@$_key));
$form->addElement(new XoopsFormButton("","sumit",_SEARCH,"submit"));
$form->assign($xoopsTpl);